Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove MediaType from public methods in API module #232

Merged
merged 4 commits into from
Aug 7, 2018
Merged

Remove MediaType from public methods in API module #232

merged 4 commits into from
Aug 7, 2018

Conversation

kvosper
Copy link
Contributor

@kvosper kvosper commented Aug 6, 2018

No description provided.

public Builder contentType(MediaType mediaType) {
return addHeader(CONTENT_TYPE, mediaType);
public Builder contentType(String contentType) {
return addHeader(CONTENT_TYPE, contentType);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should remove contentType methods for now. Seems bit pointless if all it does is to set the header with an arbitrary string. The consumers can just set the Content-Type header directly.

We can add them in if or when we'll add a Styx MediaType abstraction.

public Builder contentType(MediaType mediaType) {
return addHeader(CONTENT_TYPE, mediaType);
public Builder contentType(String contentType) {
return addHeader(CONTENT_TYPE, contentType);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comment to the HttpResponse message.

@mikkokar mikkokar merged commit 62394cd into ExpediaGroup:styx-1.0-dev Aug 7, 2018
@kvosper kvosper deleted the stop-exposing-Guava-MediaType branch August 24, 2018 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants